import request from '@/utils/request';
// 获取所有用户
function getAllUser(params) {
  return request({
    url: '/user/selectUserList',
    method: 'GET',
    params
  });
};
// 新增用户
function addUser(data) {
  return request({
    url: '/user/addUser',
    method: 'POST',
    data
  });
}
// 删除用户
function deleteUser(params) {
  return request({
    url: '/user/deleteUser',
    method: 'get',
    params
  });
}
// 修改用户
function editUser(data) {
  return request({
    url: '/user/updateUser',
    method: 'POST',
    data
  });
}
// 查询组织机构
function getDepartment(data) {
  return request({
    url: '/department/select',
    method: 'get'
  });
}
// 重置密码
function updatePWD(params) {
  return request({
    url: '/user/updatePwd',
    method: 'get',
    params
  });
}
// 批量删除用户
function batchDeleteUser(data) {
  return request({
    url: '/user/list',
    method: 'delete',
    data
  });
}
// 批量审核
function batchExamineUser(data) {
  return request({
    url: '/user/list',
    method: 'post',
    data
  });
}
// 导入excel数据
function inputExl(data) {
  return request({
    url: '/user/excel',
    method: 'post',
    data
  });
}
// 获取评分表列表、搜索评分表
function getScoreList(params) {
  return request({
    url: '/evaluation/page',
    method: 'GET',
    params
  });
};
// 个人中心
function getUserMsg(params) {
  return request({
    url: '/user/selectPersonal',
    method: 'GET',
    params
  });
};
// 修改密码
function updatePwd(data) {
  return request({
    url: '/user/updateUserPwd',
    method: 'POST',
    data
  });
};
export { getAllUser, addUser, deleteUser, editUser, getDepartment, updatePWD, batchDeleteUser, batchExamineUser, inputExl, getScoreList, getUserMsg, updatePwd };
